package 标准类;

public class MovieTest {
    public static void main(String[] args) {
        // 空参构造+set
        Movie m1 = new Movie();
        // 赋值
        m1.setName("战狼");
        m1.setType("战争");
        m1.setDirector("吴京");
        // 取值
        System.out.println(m1.getName() + "," + m1.getType() + "," + m1.getDirector());


        // 带参构造直接赋值
        Movie m2 = new Movie("阿凡达", "科幻片", "詹姆斯卡梅隆");
        System.out.println(m2.getName() + "," + m2.getType() + "," + m2.getDirector());
    }
}
